<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>员工管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/zTree/metroStyle/metroStyle.css" />
    <link href="../../../../../../public-tools/pc/css/bootstrap-switch.min.css" rel="stylesheet">

    <style>
        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }

        .checkbox-inline {
            line-height: 5px;
        }

        .search {
            width: 25%;
        }

        /* 设置搜索框宽度 */
    </style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content" id="app" v-cloak>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-md-2 ">
                        <span class="label label-success" style="width: 100%;display: inline-block">部门树</span>
                        <ul id="treeDemo" class="ztree" style="height: 82vh;overflow: scroll;"></ul>
                    </div>
                    <div class="col-md-10 example" style="margin-top: -10px;">
                        <div class="btn-group" id="toolbar" role="group">
                            <button type="button" class="btn btn-outline btn-default" @click="add(0)"
                                v-if="permission(0)">
                                <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加
                            </button>
                            <button type="button" class="btn btn-outline btn-default" @click="update(1)"
                                v-if="permission(1)">
                                <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>修改
                            </button>
                            <button type="button" class="btn btn-outline btn-default" @click="del(2)"
                                v-if="permission(2)">
                                <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>删除
                            </button>
                            <button type="button" class="btn btn-outline btn-default" @click="assignRoles(4)"
                                v-if="permission(4)">
                                <i class="glyphicon glyphicon-edit" aria-hidden="true"></i>
                                分配小程序角色
                            </button>
                            <button type="button" class="btn btn-outline btn-default" @click="addCertificate(5)"
                                v-if="permission(5)">
                                <i class="glyphicon glyphicon-edit" aria-hidden="true"></i>
                                添加证书
                            </button>
                            <label class="checkbox-inline i-checks" style="margin-left: 8px;" id="isChildren">
                                <input type="checkbox" name="isChildren" value="1" checked> 包含子部门员工</label>
                        </div>
                        <table id="bootstrapTableEvents"></table>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../../../../../../public-tools/pc/js/bootstrap-switch.min.js?v=3.3.2"></script>
    <script type="text/javascript"
        src="../../../../../../public-tools/pc/plugins/zTree/jquery.ztree.core.min.js"></script>
    <script type="text/javascript"
        src="../../../../../../public-tools/pc/plugins/zTree/jquery.ztree.excheck.min.js"></script>
    <script type="text/javascript" src="../../../../js/sys-manage/organize-personnel/staff/list.js"></script>

</body>

</html>